Object.defineProperty(exports, "__esModule", {
    value: !0
});

var t = function(t) {
    return t && t.__esModule ? t : {
        default: t
    };
}(require("../../../utils/api2"));

exports.default = {
    addTo: function(e, i) {
        var o = i.sid;
        this.page = e, Object.assign(e, {
            $$editorAddCoupon: function(i) {
                t.default.site.coupons.getlists({
                    data: {
                        sid: o
                    }
                }).then(function(t) {
                    e.$$editorAddSection({
                        type: "coupon",
                        data: {
                            list: t
                        }
                    }, i);
                });
            },
            $$editorUpdateCoupon: function(i) {
                t.default.site.coupons.getlists({
                    data: {
                        sid: o
                    }
                }).then(function(t) {
                    e.$$editorUpdateSectionData({
                        list: t
                    }, i);
                });
            }
        });
    }
};